package com.qkjia.srb.sms.client.fallback;

import com.qkjia.srb.sms.client.CoreUserInfoClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 *  @author 赵乾坤
 *  @since 2021-11-13 15:56
 * 防止雪崩
 */
@Service
@Slf4j
public class CoreUserInfoClientFallback implements CoreUserInfoClient {
    /**
     * 验证手机号
     * @param mobile
     * @return
     */
    @Override
    public boolean checkMobile(String mobile) {
        log.error("远程调用失败，服务熔断");
        return false;
    }
}
